package com.chen.function;

import java.util.function.Consumer;

// Consumer消费型接口
public class FunctionTest3 {
    public static void main(String[] args) {

        Consumer<String> consumer = System.out::println;

        consumer.accept("Hello, World!");
    }
}
